package com.linkivr.util;
/**
 * 树节点
 * @author 
 */
public class CHECKNode {
	private String id;
	private String text;
	private boolean leaf;
	private String icon;
	private String url;
	private boolean checked;
	
	public CHECKNode(String id,String text,boolean leaf,String url,String icon,boolean checked){
		this.id = id;
		this.text = text;
		this.leaf = leaf;
		this.url = url;
		this.icon = icon;
		this.checked=checked;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	//JSON形式显示该对象
	public String toString(){
		//return "{id:'"+id+"',text:'"+text+"',leaf:"+leaf+",url:'"+url+"',icon:'"+icon+"'}";
		return "{id:'"+id+"',text:'"+text+"',leaf:"+leaf+",checked:"+checked+",url:'"+url+"',icon:'"+"'}";
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public boolean isChecked() {
		return checked;
	}
}
